package com.example.oms.dao;

import com.example.oms.entity.DiagReports;
import com.example.oms.vo.DiagReportsInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DiagReportsDao {
    void newDiagReport(@Param("diagReports") DiagReports diagReports);
    List<DiagReports> getDiagReportsByDiagRecordId(int diagRecordId);

    int changeDiagReportStatus(int id, String paid);

    List<DiagReportsInfoVo> getNotPaidDiagReportsByByPatientId(int id);
    int changeDiagReportStatusByDiagId(int diagId, String status);

    List<DiagReportsInfoVo> getAllPaidByDiagId(int diagId);

    List<DiagReportsInfoVo> getAllUnpaidByDiagId(int diagId);
@Update("update diagreports set status='Paid' where id=#{diagId}")
    void updateStatus(int diagId);
}
